KindEditor.plugin('sync_output', function(K) {
	var self = this, name = 'sync_output', lang = self.lang(name + '.');
	var count = 0;
	self.plugin.sync_output = {
		output_content : function() {
			console.clear();
			console.info(self.html());
			self.sync();
			console.info($("#content_id").html());
			console.info(ext.content());
			var dialog = K.dialog({
				width : 500,
				title : '测试窗口',
				body : '<div style="margin:10px;"><strong>内容</strong></div>',
				closeBtn : {
					name : '关闭',
					click : function(e) {
						dialog.remove();
					}
				},
				yesBtn : {
					name : '确定',
					click : function(e) {
						alert(this.value);
					}
				},
				noBtn : {
					name : '取消',
					click : function(e) {
						dialog.remove();
					}
				}
			});
			console.info(K.VERSION + "------------------------------" + count);
			count++;
		}
	};
	self.clickToolbar(name, self.plugin.sync_output.output_content);
});
